<% row = cycle("even", "odd") %>
<tr class="<%= row %>">
  <td><%= product.id %></td>
  <td><%= product.presentation %></td>
  <td><%= product.number %></td>
  <td><%= product.tax %>&nbsp;%</td>
  <td><%= number_to_currency(product.price) %></td>
  <td><%= product.deleted? ? "Smazán" : (t "enumerations.product.state.#{product.state}") %></td>
  <td><%= raw(l product.created_at, :format => :short) %></td>
  <td>
    <% permitted_to? :delete, :admin_products do %>
      <%= button_to_delete "Smazat výrobek", admin_product_path(product) unless product.deleted? %>
    <% end %>
    <% permitted_to? :edit, :admin_products do %>
      <%= button_to_edit "Editovat výrobek", edit_admin_product_path(product) %>
      <%= button_to_clone "Kopírovat výrobek", clone_admin_product_path(product) %>
    <% end %>
  </td>
</tr>